import request from '@/utils/request'
import { getMiniAppId } from '@/utils/index'

// 介绍列表
export function POST_playlet_rank_index(data) {
  return request({
    url: '/admin/playlet_rank/index',
    method: 'post',
    data: data
  })
}

// 介绍排序

export function POST_playlet_rank_sort(data) {
  return request({
    url: '/admin/playlet_rank/sort',
    method: 'post',
    data: data
  })
}

// 简绍删除

export function DELET_playlet_rank_del(data) {
  return request({
    url: '/admin/playlet_rank/del',
    method: 'post',
    data: data
  })
}
// 简绍保存

export function POST_playlet_rank_save(data) {
  return request({
    url: '/admin/playlet_rank/save',
    method: 'post',
    data: data
  })
}

// 简绍状态
export function POST_playlet_rank_status(data) {
  return request({
    url: '/admin/playlet_rank/status',
    method: 'post',
    data: data
  })
}

// /admin/mini_app_rank/save
export function POST_mini_app_rank_save(data) {
  return request({
    url: '/admin/mini_app_rank/save',
    method: 'post',
    data: getMiniAppId(data)
  })
}
